/*
 * CollaborativeWorksSubjectGetList.java
 *
 * Created on November 11, 2008, 6:53 PM
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */

package jollylengkono.skripsi.CollaborativeWorksSubject.action;

import java.util.ArrayList;
import java.util.List;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import jollylengkono.skripsi.dao.CollaborativeWorksSubjectDao;
import org.apache.struts.action.Action;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionForward;
import org.apache.struts.action.ActionMapping;

/**
 *
 * @author JollkY
 */
public class CollaborativeWorksSubjectGetList extends Action {
    
    /** Creates a new instance of CollaborativeWorksSubjectGetList */
    public CollaborativeWorksSubjectGetList() {
    }
    
    public ActionForward execute(ActionMapping mapping, ActionForm form,
            HttpServletRequest request, HttpServletResponse response) {
        List cwSubjects = new ArrayList();
        cwSubjects = new CollaborativeWorksSubjectDao().getList();
        request.setAttribute("cwSubjects", cwSubjects);
        return mapping.findForward("success");
    }
    
}
